package com.platform.security.exception;


import org.springframework.http.HttpStatus;

/**
 * @author
 */
public class InvalidCodeException extends Authentication2Exception {

	@Override
	public String getOAuth2ErrorCode() {
		return "invalid_code";
	}

	public InvalidCodeException(String msg) {
		super(msg);
	}

	public InvalidCodeException(String msg, Throwable t) {
		super(msg);
	}

	@Override
	public int getHttpErrorCode() {
		return HttpStatus.BAD_REQUEST.value();
	}

}
